# get the file list
begin
  files = Dir.entries "./Jan_6"
  puts files
  file_list = File.new("01_file_list.txt",'w')

  for file_name in files
    if file_name != '.' and file != '..'
      puts file
      file_list.puts file_name
    end
  end
rescue Exception => e
  file_list.close
end